package com.mapper;

import com.github.pagehelper.Page;
import com.pojo.Order;
import com.pojo.OrderExample;
import com.pojo.Role;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrderMapper {

    Integer [] getSetMealId(Integer id);

    //根据订单id查询预约信息
    Order queryById(Integer id);
    //查询订单
    Page<Order> queryAll(String name);
    //添加订单表
    void addOrder(@Param("SetMealIds") Integer [] SetMealIds,@Param("record") Order record);

    long countByExample(OrderExample example);

    int deleteByExample(OrderExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Order record);

    int insertSelective(Order record);

    List<Order> selectByExample(OrderExample example);

    Order selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Order record, @Param("example") OrderExample example);

    int updateByExample(@Param("record") Order record, @Param("example") OrderExample example);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);
}